package com.qiaoyanqing.ximalaya.discovermodule.discover_adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016/12/2.
 */

public class Discover_Recommend_HeadViewpagerAdapter extends FragmentStatePagerAdapter{

    private List<Fragment>mdata;

    public Discover_Recommend_HeadViewpagerAdapter(FragmentManager fm, List<Fragment> mdata) {
        super(fm);
        this.mdata = mdata;
    }

    @Override
    public Fragment getItem(int position) {
        return mdata.get(position);
    }

    @Override
    public int getCount() {
        return mdata.size();
    }
}
